package com.qyhl.module_home.new_message;


import com.qyhl.webtv.commonlib.entity.user.MessageUnreadBean;

public class MessagePresenter implements MessageContract.MessagePresenter {
    private MessageActivity mView;
    private MessageModel mModel;

    MessagePresenter(MessageActivity mView) {
        this.mView = mView;
        this.mModel = new MessageModel(this);
    }

    @Override
    public void getUnreadMsgNum(String sTime,String tTime, String userName) {
        mModel.getUnreadMsgNum(sTime,tTime, userName);
    }

    @Override
    public void setUnreadBadge(MessageUnreadBean bean) {
        mView.setUnreadBadge(bean);
    }
}
